<template>
  <div class="dashboard-container">
    <div class="dashboard-text important-text">当前用户: {{ name }}</div>
    <div class="dashboard-text">当前角色(可以多个): {{ $store.getters.roles }}</div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  components: { },
  data() {
    return {
    }
  },
  created() {
  },
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 20px;
    line-height: 30px;
  }
}
.important-text {
  font-size: 40px !important;
  line-height: 80px !important;
}
</style>
